import Resource from 'koa-resource-router';

const prefix = 'api/';

export default function resource(...args){
  args[0] = prefix + args[0];
  // const controller = new Resource(...args);
  return new Resource(...args).middleware();
}